<!DOCTYPE html>
<html>
  <head>
    <title>Upload-file</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="ajaxfileupload.js"></script>
  </head>
  <script>
jQuery.(function(){
    $("#buttonUpload").click(function(){
      $.ajaxFileUpload({
        url: '/import/mcc',
        secureuri: flase
        fileElementId: 'fileUpload',
        dataType: 'json',
        success: function(data,status){
          alert(data.msg);
        },
        error: function(data) {
          alert("error");
        }
      })
      return false;
    })
})
  </script>
  <body>
    <input id="fileToUpload" type="file" name="fileToUpload" class="input">
    <button id="buttonUpload">上传</button>
  </body>
</html>

